import { configureStore } from "@reduxjs/toolkit";
import breadcrumbReducer from "./modules/breadcrumbSlice";
import titleReducer from "./modules/titleSlice";
import menuReducer from "./modules/menuSlice";

const store = configureStore({
  reducer: {
    breadcrumb: breadcrumbReducer,
    title: titleReducer,
    menu: menuReducer,
  },
});

export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch;

export default store;
